﻿using DataTransfer.SDK.Models;
using NPOI.SS.UserModel;
using System.Data;

namespace DataTransfer.SDK.Events
{
    /// <summary>
    /// 
    /// </summary>
    public class ExportExcelCellEventArgs : EventArgs
    {
        IExcelExportSheetField _sheetField;
        ICell _cell;
        DataRow _dataRow;

        /// <summary>
        /// 
        /// </summary>
        /// <param name="sheetField"></param>
        /// <param name="cell"></param>
        /// <param name="dataRow"></param>
        public ExportExcelCellEventArgs(IExcelExportSheetField sheetField, ICell cell, DataRow dataRow)
        {
            _sheetField = sheetField;
            _cell = cell;
            _dataRow = dataRow;
        }

        /// <summary>
        /// 
        /// </summary>
        public ICell Cell
        {
            get { return _cell; }
        }

        /// <summary>
        /// 
        /// </summary>
        public DataRow DataRow
        {
            get { return _dataRow; }
        }

        /// <summary>
        /// 
        /// </summary>
        public IExcelExportSheetField SheetField
        {
            get { return _sheetField; }
        }
    }
}
